home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Presentations / Presentations ’97 / Sessions ’97 / Java for Macintosh Applications / JDK Native / Test.java < prev    next >
Encoding:
Java Source  |  1997-06-27  |  372 b   |  25 lines  |  [TEXT/CWIE]

  1. /*
  2.     Test.java
  3.  
  4.     Test of JDK Native Methods.
  5.  
  6.     © 1997 by Michael J. Webb (mjw@codewell.com)
  7.  
  8. */
  9.  
  10. import TimeUtils;
  11.  
  12. class Test
  13. {
  14.  
  15.     public static void main()
  16.     {
  17.         /** Test our native methods.
  18.          */
  19.         System.out.println(TimeUtils.GetRealTime());
  20.         System.out.println(TimeUtils.GetRelativeTime());
  21.         System.out.println(TimeUtils.GetTimeString(TimeUtils.GetRealTime()));
  22.     }
  23.  
  24. }
  25.